package com.ocom.common.entity.card;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocom.common.entity.base.EntityCardBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 缓存用到 加字段需注意！！！！！！！！！！！！！！！！！！！！
 */


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_meal_time")
public class EntityXfMealTime extends EntityCardBase implements Serializable {

	private static final Long serialVersionUID = -7379637281365457018L;
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	private Long comId;
	private String mealNo;
	private Integer accTypeId;
	private Integer pointId;
	@JsonFormat(pattern = "HH:mm:ss")
	private String beginTime;
	@JsonFormat(pattern = "HH:mm:ss")
	private String endTime;
	private BigDecimal advanceMoney;
	private Integer beforeHour;
	private Integer allowDays;
	private Integer allowMinute;

	@TableField(exist = false)
	private String mealName;

	private Integer consTimeZone;
}
